package com;

public class MyMath {
	
	public static double jc(int n){
		double s=1;
		for(int i=1;i<=n;i++)
			s=s*i;
		return s;
	}
	
	public static boolean isPrime(int n){
		int i;
		if(n==1) return false;
		for(i=2;i<n;i++)
			if(n%i==0)
				return false;
		 return true;
	}
}
